<?php

declare(strict_types=1);

namespace App\Record\Model;

use Mine\MineModel;

/**
 * @property int $id Id
 * @property int $user_id 用户id
 * @property int $parent_id 上级ID
 * @property int $fact_money 用实际到账
 * @property int $received_amount 到账金额
 * @property string $order_sn 内部订单号
 * @property string $transaction_id 外部订单号
 * @property int $method_id 支付方式
 * @property string $method_name 支付名称
 * @property int $created_by 创建人
 * @property int $create_time 创建时间
 * @property int $update_time 修改时间
 */
class RecordPaymentSuccess extends MineModel
{
    protected ?string $dateFormat = 'U';
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'record_payment_success';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'user_id', 'parent_id', 'fact_money', 'received_amount', 'order_sn', 'transaction_id', 'method_id', 'method_name', 'created_by', 'create_time', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'parent_id' => 'integer', 'fact_money' => 'integer', 'received_amount' => 'integer', 'method_id' => 'integer', 'created_by' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer'];
}
